﻿using System;
using System.Collections.Generic;
using System.Linq;
using System.Text;
using CSP.Model.CSP;

namespace CSP.Bll.IObjectBlls
{
    public interface IContactWayBll : ICSPBll<ContactWay>
    {
        ICollection<ContactWay> FindByUser(string userName);

        /// <summary>
        /// 根据多个用户名获取索取联系方式
        /// </summary>
        /// <param name="userNames"></param>
        /// <returns></returns>
        ICollection<ContactWay> FindByUsers(List<string> userNames);



        /// <summary>
        /// 获取数据根据Id 和UserName
        /// </summary>
        /// <param name="id"></param>
        /// <param name="userName"></param>
        /// <returns></returns>
        ContactWay GetDataByIdAndUser(int id, string userName);

        /// <summary>
        /// 删除联系方式
        /// </summary>
        /// <param name="id"></param>
        /// <param name="userName"></param>
        /// <returns></returns>
        ContactWay DeleteByIdAndUser(int id, string userName);

        /// <summary>
        /// 根据用户获取联系方式数量
        /// </summary>
        /// <param name="userName"></param>
        /// <returns></returns>
        int GetCountByUser(string userName);
    }
}
